#编译配置
TEMPLATE = app
CONFIG += c++11
DESTDIR = $$PWD/../target/
CONFIG(debug, debug|release){
    TARGET = AdPlayerFFD_X86
} else {
    TARGET = AdPlayerFF_X86
}
contains(QT_ARCH, arm64){
    CONFIG(debug, debug|release){
        TARGET = AdPlayerFFD_Arm
    } else {
        TARGET = AdPlayerFF_Arm
    }
}
QMAKE_CXXFLAGS+= -Wno-unused-parameter
QMAKE_CXXFLAGS+= -Wno-reorder

#依赖配置
QT += core network widgets gui

HEADERS += \
    log/logger.h \
    log/logmanager.h \
    log/logworker.h \
    log/recorder.h \
    log/utils.h \
    test/testwidget.h \
    video/demuxthread.h \
    video/ffinclude.h \
    video/renderthread.h \
    video/videoplayer.h \
    video/decodethread.h \
    video/playerdefine.h \
    test/videocontrol.h

SOURCES += \
    main.cpp \
    log/logger.cpp \
    log/logmanager.cpp \
    log/logworker.cpp \
    log/recorder.cpp \
    log/utils.cpp \
    test/testwidget.cpp \
    video/demuxthread.cpp \
    video/ffinclude.cpp \
    video/renderthread.cpp \
    video/videoplayer.cpp \
    video/decodethread.cpp \
    test/videocontrol.cpp


LIBS +=  \
        -lavcodec \
        -lavdevice \
        -lavfilter \
        -lavformat \
        -lavutil \
        -lpostproc \
        -lswscale \
        -lswresample \
        -lSDL2

FORMS += \
    test/testwidget.ui


